package com.goktech.service.imp;

import com.goktech.entity.type;
import com.goktech.mapper.TypeMapper;
import com.goktech.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName typeServiceImp
 * @Description TODO
 * @Author 邱华英
 * @Date 2022/9/19 20:01
 * @Version 1.0
 */

@Service("TypeService")
public class typeServiceImp implements TypeService {

    @Autowired
    TypeMapper typeMapper;
    @Override
    public int insertType(type t) {
        return typeMapper.insertType(t);
    }

    @Override
    public int updateType(type t) {
        return typeMapper.updateType(t);
    }

    @Override
    public int deleteType(type t) {
        return typeMapper.deleteType(t);
    }

    @Override
    public type findByTypeName(type t) {
        return typeMapper.findByType(t);
    }

    @Override
    public List<type> findByAll() {
        return typeMapper.findByAll();
    }
}
